package chapter06.E7;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Objects;

public class E7 {
    public static void main(String[] args) {
        HashSet set = new HashSet();
        set.add("张三");
        set.add("李四");
        set.add("王五");
        set.add("李四");
        System.out.println(set);
        Iterator it = set.iterator();
        while (it.hasNext()) {
            Object obj = it.next();
            System.out.println(obj);
        }
    }
}
